<?php
namespace Service;
class Log
{

    public function witer($name,$content){
        $path ="/www/wwwroot/work/renwu.tzhtc.ne/Public/log/".$name.".log";
        $str =json_encode($content,JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);
        return  file_put_contents($path,$str.PHP_EOL, FILE_APPEND);
    }
}